package gwt.immunology.client.components;

import com.google.gwt.user.datepicker.client.CalendarModel;
import com.google.gwt.user.datepicker.client.CalendarView;
import com.google.gwt.user.datepicker.client.DatePicker;
import com.google.gwt.user.datepicker.client.DefaultCalendarView;

public class DatePickerEx extends DatePicker {

    public MonthAndYearSelector monthSelector;

    public DatePickerEx() {
        super(new MonthAndYearSelector(), new DefaultCalendarView(), new CalendarModel());
        monthSelector = (MonthAndYearSelector) this.getMonthSelector();
        monthSelector.setPicker(this);
        monthSelector.setModel(this.getModel());
    }

    public void refreshComponents() {
        super.refreshAll();
    }

    public CalendarView getCalendarView() {
    	return super.getView();
    }
    
}
